/// @tags:
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <numeric>

using std::cin, std::cout, std::endl;

namespace BlueQuantum {

constexpr int maxn = 100;

int main() {
  int a, b, k;
  cin >> a >> b >> k;
  cout << a / b << '.';
  a = a % b;
  std::vector<char> ans;
  while (k--) {
    a *= 10;
    ans.push_back(a / b + '0');
    // cout << a / b;
    a = a % b;
  }
  a *= 10;
  if (a / b >= 5) ans[ans.size() - 1] += 1;
  a = a % b;
  for (auto i : ans) {
    cout << i;
  }
  return 0;
}

}  // namespace BlueQuantum

int main() {
#ifndef ONLINE_JUDGE
#ifdef LOCAL
  freopen("/tmp/CodeTmp/testdata.in", "r", stdin);
  freopen("/tmp/CodeTmp/testdata.out", "w", stdout);
#else
  freopen("B. Arithmetic Exercise.in", "r", stdin);
  freopen("B. Arithmetic Exercise.out", "w", stdout);
#endif
#endif

  std::ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  return BlueQuantum::main();
}
